package com.disease.api.service.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Date;
import java.sql.Timestamp;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("death_work_flow")
public class DeathCardWorkFlow {

    @TableField("patient_id")
    private String patientId;

    @TableField("serial_number")
    private String serialNumber;

    @TableField("step")
    private int step;

    //流程操作状态
    @TableField("name")
    private String name;

    //操作人
    @TableField("audit")
    private String audit;

    private boolean active;

    @TableField("time")
    private LocalDateTime time;

    @TableField("remark")
    private String remark;

    public static DeathCardWorkFlow of(int step, String name) {
        DeathCardWorkFlow workFlow = new DeathCardWorkFlow();
        workFlow.step = step;
        workFlow.name = name;
        return workFlow;
    }

}
